
(function($, undefined) {
  
  $(document).ready(function() {
    
    $('.draggable').draggable({
            revert: false,
  })
    
    $('.droppable').droppable({
      activeClass: 'ui-state-hover',
      hoverClass: 'ui-state-active',
      
      drop: function(e, ui) {

        var val = ui.draggable.html();
        $(this).find('input').val(val);
        
        
        $('#btnSubmit').attr('disabled', false);
      }
    });
    
  });
  
})(window.jQuery);

$(window).load(function() {
  ajusteVertical();
});

$(window).resize(function() {
  ajusteVertical();
});